package handlers

import (
	"doc-heal/models"
	"github.com/gin-gonic/gin"
)

func List(c *gin.Context) {
	var doc []models.Doc
	models.DB.Find(&doc)
	c.JSON(200, gin.H{
		"code": 0,
		"msg":  "查询成功",
		"data": doc,
	})
	return
}
